package com.woniuxy.amusementparkos.interceptor.xxy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class StoreWebConfiguration implements WebMvcConfigurer {
	@Autowired
	StoreLoginInterceptor storeLoginInterceptor;
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(storeLoginInterceptor)
		.addPathPatterns("/store/user/**","/toMain","/store/order/getOrder","/store/order/showOrder","/store/good/**")
		.excludePathPatterns("/store/user/storeLogin","/store/user/login","/store/user/loginByKey","**/static/**");
		WebMvcConfigurer.super.addInterceptors(registry);
	}
}
